package com.example.jacky.android_easeui.demo;

import android.os.Bundle;
import android.util.DisplayMetrics;
import android.util.Log;
import android.view.Window;

import com.example.jacky.android_easeui.R;
import com.example.jacky.android_easeui.base.BaseActivity;
import com.example.jacky.uilibrary.view.MyLineChart;

public class LineChartActivity extends BaseActivity {
	public static final String TAG = "LineChartActivity";

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.activity_line_chart);

		DisplayMetrics dm = new DisplayMetrics();
		getWindowManager().getDefaultDisplay().getMetrics(dm);
		int width = dm.widthPixels;
		int height = dm.heightPixels;
		Log.d("系统信息", "该设备的分辨是：" + width + "*" + height);
		MyLineChart.right = width - 35;
		MyLineChart.gapX = (width - 70) / 11;
	}

}
